#openssl req -x509 -nodes -sha256 -days validity_certificate -newkey rsa:bits -keyout root_key_file -out root_certificate_file
openssl req -x509 -nodes -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt
#openssl genrsa -out private_key_filename bits
#openssl genrsa -out private_key_filename bits
openssl genrsa -out private.key 2048
#openssl rsa -in private_key_filename -outform PEM -pubout -out publickey_filename
openssl rsa -in private.key -outform PEM -pubout -out public.pem
#openssl req -x509 -nodes -sha256 -days validity_certificate -newkey rsa:bits -keyout root_key_file -out root_certificate_file
openssl req -x509 -nodes -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt
#openssl genrsa -out private_key_filename bits
openssl genrsa -out private.key 2048
#openssl req -key private_key_filename -new -out csr_filename
openssl req -key private.key -new -out domain.csr
#openssl x509 -req -CA root_ca_cert_file -CAkey root_ca_key_file -in csr_filename -out device_cert_filename -days validitiy -CAcreateserial
openssl x509 -req -CA rootCA.crt -CAkey rootCA.key -in domain.csr -out device.crt -days 365 -CAcreateserial
#openssl ecparam -genkey -name prime256v1 -noout -out file_name
openssl ecparam -genkey -name prime256v1 -noout -out ec_private.key
#openssl ec -in private_key_filename -outform PEM -pubout -out publickey_filename
openssl ec -in ec_private.key -pubout -outform PEM -pubout -out ec_public.pem
#openssl req -x509 -nodes -sha256 -days validity_certificate -newkey rsa:bits -keyout root_key_file -out root_certificate_file
openssl req -x509 -nodes -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt
#openssl ecparam -genkey -name prime256v1 -noout -out file_name
openssl ecparam -genkey -name prime256v1 -noout -out ec_private.key
#openssl req -key private_key_filename -new -out csr_filename
openssl req -key ec_private.key -new -out domain.csr
#openssl x509 -req -CA root_ca_cert_file -CAkey root_ca_key_file -in csr_filename -out device_cert_filename -days validitiy -CAcreateserial
openssl x509 -req -CA rootCA.crt -CAkey rootCA.key -in domain.csr -out device.crt -days 365 -CAcreateserial